package com.yt.sys.models.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value = "SysPermissionDTO", description = "权限信息DTO")
public class SysPermissionDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限唯一ID")
    private Integer permId;

    @NotBlank(message = "权限名称不能为空")
    @ApiModelProperty(value = "权限名称（如录入投保信息、医疗审核）")
    private String permName;

    @NotBlank(message = "URL权限路径不能为空")
    @ApiModelProperty(value = "URL权限路径（如/system/user/add）")
    private String permUrl;

    @NotBlank(message = "所属模块不能为空")
    @ApiModelProperty(value = "所属模块（如投保管理、索赔管理）")
    private String module;
}